package cn.kgc.javaweb.dao;

import cn.kgc.javaweb.entity.User;

import java.util.List;

/**
 * @author: mosin
 * @version: v1.0  2022/10/31
 */
public interface UserDao {

    Integer registerUser(User user);

    User findByUserName(String username);

    List<User> selectAll();

    Integer updateUserById(User user);

    Integer deleteById(Long id);

    Integer resetPwd(Long id);

    List<User> selectPage(Integer start, Integer limit);

    Integer updateImg(String lastName, Long id);

}
